package com.pms.privilege.permission.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import com.pms.privilege.permission.model.PermUserFuncModel;
import com.pms.privilege.permission.model.PermissionModel;
@Repository
public interface PermissionDAO {
	/**
	 * 按功能id查找权限列表
	 * @param func_id
	 * @param start
	 * @param end
	 * @return
	 */
	public List<PermUserFuncModel> queryPermByFuncID(@Param(value="func_id") long func_id,@Param(value="start") int start,@Param(value="end") int end);
	/**
	 * 新增权限
	 * @param pm
	 * @return
	 */
	public int insertPermission(PermissionModel pm);
	/**
	 * 更新权限
	 * @param pm
	 * @return
	 */
	public int updatePermission(PermissionModel pm);
	/**
	 * 删除权限
	 * @param perm_id
	 * @return
	 */
	public int deletePermission(@Param(value="perm_id") String perm_id);
	
}
